package borge.web.teamspirit.client;

import java.util.List;

import borge.web.teamspirit.client.data.Association;
import borge.web.teamspirit.client.data.Person;
import borge.web.teamspirit.client.data.Serie;
import borge.web.teamspirit.client.data.Team;
import borge.web.teamspirit.client.interfaces.PersistentData;

public class SessionData {

	public static Person sLoggedInUser;
	public static Team sCurrentTeam;
	public static Association sCurrentAssociation;
	public static Serie sCurrentSerie;
	
	public static String sBaseToken;
	public static Object sEditObject;
		
	public static void reset(){
		sLoggedInUser = null;
		sCurrentTeam = null;
		sCurrentAssociation = null;
	}

	public static List<PersistentData> getTeamPlayers(){
		return sCurrentTeam.getPlayers();
	}
	
	public static List<PersistentData> getTeamSeries(){
		return sCurrentTeam.getSeries();
	}
	
}
